﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;

namespace PropertyManagement
{
    public partial class _default : System.Web.UI.Page
    {
        public DataTable dt;
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                BindData1();
                BindData2();
                Page.DataBind();
            }
        }

        public void BindData1()
        {
            string strsql = "select * from sxinwen order by stime desc limit 0,4";
            mydata myda = new mydata();
            DataSet ds = myda.getDataSet(strsql, "sxinwen");

            dt=ds.Tables["sxinwen"];

        }
        public DataTable dt2;
        public void BindData2()
        {
            string strsql = "select * from sqianfei order by stime desc limit 0,4";
            mydata myda = new mydata();
            DataSet ds = myda.getDataSet(strsql, "sqianfei");

            dt2 = ds.Tables["sqianfei"];
        }
    }
}